package ie.timalb.chess.main.core.pieces;

import ie.timalb.chess.main.core.movement.Location;
import ie.timalb.chess.main.core.squares.Square;

public class LocationOnBoard extends Location implements PieceLocation{
	Square square;
	
	public LocationOnBoard(Square square) {
		super (square.getXCoordinate(), square.getYCoordinate());
		setSquare(square);
	}

	@Override
	public boolean isOnBoard() {		
		return true;
	}

	public Square getSquare() {
		return square;
	}

	private void setSquare(Square location) {
		square = location;
	}
	
	
}
